package o2o.company.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import o2o.common.model.CustomHyperModelCreatorVo;

import javax.persistence.*;
import java.util.List;

/**
 * 商家
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("company")
public class Company extends CustomHyperModelCreatorVo {
    @TableId
    private Long id;
    /**
     * 商家名称
     */
    private String name;

    /**
     * 商家类型 1个人 2商家
     */
    private String type = "2";

    /**
     * 联系人名称
     */
    @TableField("contact_name")
    private String contactName;

    /**
     * 联系电话
     */
    @TableField("contact_phone")
    private String contactPhone;

    /**
     * 统一社会信用代码
     */
    @TableField("usc_code")
    private String uscCode;

    /**
     * 注册地址
     */
    @TableField("register_address")
    private String registerAddress;

    /**
     * 注册地址
     */
    private String telephone;

    /**
     * BD 营销人员
     */
    @TableField("bd_id")
    private Long bdId;

    /**
     * 营业执照
     */
    @TableField("business_license")
    private String businessLicense;

    /**
     * 结算周期
     */
    @TableField("settlement_period")
    private Integer settlementPeriod = 1;

    /**
     * 账期
     */
    @TableField("payment_period")
    private Integer paymentPeriod;


    /**
     * 删除状态
     */
    private Boolean deleted = false;
}
